home *** CD-ROM | disk | FTP | other *** search
- TRANSFER(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- TTRRAANNSSFFEERR - Treats the first argument as if it is of the same type as
- the second argument
-
- SSYYNNOOPPSSIISS
- TTRRAANNSSFFEERR (([SSOOUURRCCEE==]_s_o_u_r_c_e,, [MMOOLLDD==]_m_o_l_d [,,[SSIIZZEE==]_s_i_z_e]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- The TTRRAANNSSFFEERR intrinsic function returns a result with the physical
- representation identical to that of _s_o_u_r_c_e but interpreted with the
- type and kind of _m_o_l_d. If _m_o_l_d is character, the result has the same
- character length declared for _m_o_l_d. It accepts the following
- arguments:
-
- _s_o_u_r_c_e Can be of any type. It can be scalar or array valued.
-
- _m_o_l_d Can be of any type. It can be scalar or array valued. This
- intrinsic function should not be used if _m_o_l_d is a derived
- type with a pointer component; the result of this depends on
- your implementation.
-
- _s_i_z_e Must be scalar and an integer.
-
- TTRRAANNSSFFEERR is a transformational function. The name of this intrinsic
- cannot be passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result has the same type as _m_o_l_d.
-
- If _m_o_l_d is scalar and _s_i_z_e is not present, the result is a scalar.
-
- If _m_o_l_d is array valued and _s_i_z_e is not present, the result is an
- array of rank one. The size of the array is as small as possible such
- that its physical representation is not shorter than that of _s_o_u_r_c_e.
-
- If _s_i_z_e is present, the result is an array of rank one with an extent
- of _s_i_z_e.
-
- If the physical representation of the function result is the same
- length as _s_o_u_r_c_e, the result is the entire representation of _s_o_u_r_c_e.
- If the physical representation of the function result is longer than
- _s_o_u_r_c_e, the result is the entire representation of _s_o_u_r_c_e and the
- remainder of the result is undefined. If the physical representation
- of the function result is shorter than _s_o_u_r_c_e, the result is the
- leading part of _s_o_u_r_c_e. If _s_o_u_r_c_e and _m_o_l_d are scalar entities and
- the size of _m_o_l_d is at least as long as _s_o_u_r_c_e, the result must be the
- value of _s_o_u_r_c_e. For example, if _s_o_u_r_c_e is an array and _m_o_l_d is a
- rank one array, E is the value of the following:
-
- TRANSFER(TRANSFER(E, D), E, SIZE(E))
-
- EEXXAAMMPPLLEESS
- Example 1: The result of TTRRAANNSSFFEERR((''aabbcc'',, ''dd'')) has the value aa.
-
- Example 2: Assume that AA is the following real array: ((//11..11,, 22..22,,
- 33..33//)). The result of TTRRAANNSSFFEERR((AA,, ((//((00..00,,00..00))//)))) is a complex
- 1-dimensional array with one element: (11..11, 22..22).
-
- The result of TTRRAANNSSFFEERR((AA,,((//((00..00,,00..00))//)),, 11)) is a complex rank one array
- with one element (11..11, 22..22).
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-